<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
  <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>List of all holidays</title>
</head>
<body>
<%@ include file="HeaderAdmin.jsp"%>
<center>
	<table border='0' cellpadding='5' cellspacing='5'>
		<tr align='left'>
			<td colspan='4'><b>List of Holidays:</b></td>
			<td>
				<a href="HolidayDetail">Add Holiday</a>
			</td>
		</tr>
		<tr align='left'>
			<td>Holiday ID</td>
			<td>Holiday Date</td>
			<td>Holiday Name</td>
			<td>Edit</td>
			<td>Delete</td>
		</tr>
		<c:forEach var="holidayBean" items="${requestScope.HolidayList}">
			<tr align='left'>
				<td>${holidayBean.holiday_id}</td>
				<td>${holidayBean.holiday_date}</td>
				<td>${holidayBean.holiday_name}</td>
				<td><a href="HolidayDetail?EditHolidayId=${holidayBean.holiday_id}">Edit</a></td>
				<td><a href="HolidayDelete?HolidayId=${holidayBean.holiday_id}">Delete</a></td>
			</tr>
		</c:forEach>
	</table>		
</center>
</body>
</html>